package com.ys.web.user.friends.po;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * @ClassName UserWxPO
 * @Description 微信用户信息
 * @Author qxj
 * @Date 2021/5/9 10:22
 * @Version 1.0
 */
@Data
@Table(name = "user_wx")
public class BaseUserWxPO {

    /**
     * UUID
     */
    @Id
    public String id;

    /**
     * 微信UnionId
     */
    @Column(name = "unionId")
    public String unionId;

    /**
     * 小程序编号
     */
    @Column(name = "appId")
    public String appId;

    /**
     * 微信OpenId
     */
    @Column(name = "openId")
    public String openId;

    /**
     * 昵称
     */
    @Column(name = "nickName")
    public String nickName;

    /**
     * 头像
     */
    @Column(name = "avatarUrl")
    public String avatarUrl;

    /**
     * 性别 0：未知、1：男、2：女
     */
    public Integer gender;

    /**
     * 省
     */
    public String province;

    /**
     * 市
     */
    public String city;

    /**
     * 国家
     */
    public String country;

    /**
     * 是否黑名单 1是 0否
     */
    @Column(name = "isBlack")
    public Boolean isBlack;

    /**
     * 修改时间
     */
    public LocalDateTime updateTime;

    /**
     * 创建时间
     */
    public LocalDateTime createTime;

    public String phone;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public Boolean getBlack() {
        return isBlack;
    }

    public void setBlack(Boolean black) {
        isBlack = black;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
